-
Notifications
You must be signed in to change notification settings - Fork 10
Add more downstream hostcalls #181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
8ce4757
to
ff659ed
Compare
I wonder if I should name the |
Maybe update this branch to use |
Yes, I'll update this to use the new code after your PR is merged. |
e4e10f1
to
b62155f
Compare
Branch updated. Any thoughts on renaming |
Added some comments back. |
fsthttp/request.go
Outdated
fingerprint.DDOSDetected, err = req.abi.req.DownstreamDDOSDetected() | ||
if err != nil { | ||
return nil, fmt.Errorf("get ddos detected: %w", err) | ||
} | ||
|
||
fingerprint.FastlyKeyIsValid, err = req.abi.req.DownstreamFastlyKeyIsValid() | ||
if err != nil { | ||
return nil, fmt.Errorf("get fastly key is valid: %w", err) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't particularly like these two fields inside Fingerprint
since they don't seem related.
// FastlyKeyIsValid is true if the request contains a valid Fastly API token. | ||
FastlyKeyIsValid bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do customers' apps need to know this?
PTAL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.